import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:material_collection_app/utils/utils.dart';

class NetworkTips extends StatefulWidget {
  final String tips;
  NetworkTips({Key key, this.tips}) : super(key: key);

  @override
  State<StatefulWidget> createState() => MyState();
}

class MyState extends State<NetworkTips> {
  
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false);

    return Container(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Image.asset('assets/network.png', width: 100),
          Container(
            margin: EdgeInsets.only(top: 20),
            padding: EdgeInsets.only(bottom: 100),
            child: Text(widget.tips, style: TextStyle(
              color: Utils.hexToColor('#999999'),
              fontSize: 13
            )),
          )
        ],
      ),
    );
  }
}